package com.chendechao.model_home.model

import android.os.Parcel
import android.os.Parcelable
import java.io.Serializable

data class RecommendMutilVideo(
    val actorlist: String,
    val albumgroupid: Long,
    val albumid: Long,
    val arealist: String,
    val avatar_url: String,
    val cover_height: Int,
    val cover_largeurllist: String,
    val cover_mediumurllist: String,
    val cover_thumburllist: String,
    val cover_uri: String,
    val cover_url: String,
    val cover_urllist: String,
    val cover_width: Int,
    val ctime: String,
    val description: String,
    val duration: String,
    val favoritecount: Int,
    val id: Int,
    val intro: String,
    val languageinfo: String,
    val name: String,
    val shareurl: String,
    val subtitle: String,
    val taglist: String,
    val title: String,
    val toutiaolvideotext: String,
    val userid: String,
    val verifycode: String,
    val videomainimag: String,
    val videopath: String,
    val videotypeid: Int,
    val year: String
):Parcelable {
    constructor(parcel: Parcel) : this(
        parcel.readString().toString(),
        parcel.readLong(),
        parcel.readLong(),
        parcel.readString().toString(),
        parcel.readString().toString(),
        parcel.readInt(),
        parcel.readString().toString(),
        parcel.readString().toString(),
        parcel.readString().toString(),
        parcel.readString().toString(),
        parcel.readString().toString(),
        parcel.readString().toString(),
        parcel.readInt(),
        parcel.readString().toString(),
        parcel.readString().toString(),
        parcel.readString().toString(),
        parcel.readInt(),
        parcel.readInt(),
        parcel.readString().toString(),
        parcel.readString().toString(),
        parcel.readString().toString(),
        parcel.readString().toString(),
        parcel.readString().toString(),
        parcel.readString().toString(),
        parcel.readString().toString(),
        parcel.readString().toString(),
        parcel.readString().toString(),
        parcel.readString().toString(),
        parcel.readString().toString(),
        parcel.readString().toString(),
        parcel.readInt(),
        parcel.readString().toString()
    ) {
    }

    override fun writeToParcel(parcel: Parcel, flags: Int) {
        parcel.writeString(actorlist)
        parcel.writeLong(albumgroupid)
        parcel.writeLong(albumid)
        parcel.writeString(arealist)
        parcel.writeString(avatar_url)
        parcel.writeInt(cover_height)
        parcel.writeString(cover_largeurllist)
        parcel.writeString(cover_mediumurllist)
        parcel.writeString(cover_thumburllist)
        parcel.writeString(cover_uri)
        parcel.writeString(cover_url)
        parcel.writeString(cover_urllist)
        parcel.writeInt(cover_width)
        parcel.writeString(ctime)
        parcel.writeString(description)
        parcel.writeString(duration)
        parcel.writeInt(favoritecount)
        parcel.writeInt(id)
        parcel.writeString(intro)
        parcel.writeString(languageinfo)
        parcel.writeString(name)
        parcel.writeString(shareurl)
        parcel.writeString(subtitle)
        parcel.writeString(taglist)
        parcel.writeString(title)
        parcel.writeString(toutiaolvideotext)
        parcel.writeString(userid)
        parcel.writeString(verifycode)
        parcel.writeString(videomainimag)
        parcel.writeString(videopath)
        parcel.writeInt(videotypeid)
        parcel.writeString(year)
    }

    override fun describeContents(): Int {
        return 0
    }

    companion object CREATOR : Parcelable.Creator<RecommendMutilVideo> {
        override fun createFromParcel(parcel: Parcel): RecommendMutilVideo {
            return RecommendMutilVideo(parcel)
        }

        override fun newArray(size: Int): Array<RecommendMutilVideo?> {
            return arrayOfNulls(size)
        }
    }
}